package pta;/**
 * @author： li
 * @date： 2022-03-29 20:39
 * @version 1.0
 */
import  java.util.*;
public class 画方块 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String a =sc.next();
        double hang = n*0.5;
        for(int i=1;i<=(int)(hang+0.5);i++){
            for(int j=1;j<=n;j++){
                System.out.print(a);
            }
            if(i<=(int)(hang+0.5)-1)
                System.out.println();
        }
    }
}
